a = '''K=0, E=0.4808599999998446
K=1, E=-51.870919999999956
K=2, E=-105.6621799999987
K=3, E=-143.40425999999277
K=4, E=-198.38881999997983
K=5, E=-254.0820199999731
K=6, E=-292.34197999998634
K=7, E=-348.93055999997966
K=8, E=-400.15049999999866
K=9, E=-451.74283999999847
K=10, E=-497.19103999999476
K=11, E=-546.0433599999993
K=12, E=-596.7894200000134
K=13, E=-651.3736600000116
K=14, E=-703.6964200000263
K=15, E=-760.0414800000314
K=16, E=-801.7359400000307
K=17, E=-854.2555800000238
K=18, E=-898.969880000044
K=19, E=-947.7829800000248
K=20, E=-1004.4273200000442
K=21, E=-1047.0075400000344
K=22, E=-1106.3427600000375
K=23, E=-1146.5883000000529
K=24, E=-1195.9540800000598
K=25, E=-1244.9169800000432'''

a = a.replace('K','$K$')
a = a.replace('E','$E$')
print(a)